package com.hefei.customer.info.service;

import java.util.List;

import com.hefei.customer.info.po.Contact;
import com.hefei.customer.info.po.Customer;
import com.hefei.service.framework.exception.DaoException;
import com.hefei.service.framework.exception.ServiceException;

public interface ICustomerService {
	
	/*
	 * 增加客户
	 */
	public void saveCustomerInfo(Customer customer)throws ServiceException;
	/**
	 * 
	 */
	public void updateCustomerInfo(Customer customer)throws ServiceException;
	/**
	 * 
	 */
	public void deleteCustomerInfo(Integer id)throws ServiceException;
	
	public Customer getCustomerById(Integer id)throws ServiceException;
	
	public Customer getCustoemrByName(String name)throws ServiceException;
	
	/**
	 * 获取该客户的所有联系人
	 * @return
	 */
	public List<Contact> getContactById(Integer customerId)throws ServiceException;
	/**
	 * 获取总数
	 * @param user
	 * @return
	 */
	public Long getDatagridTotal(Customer customer)throws ServiceException;
}
